package org.jctc.els.common.constant;

public class BaseRoleConstant {
    public static final String ADMINISTRATOR = "administrator";

    public static final String HAS_ROLE_ADMINISTRATOR = "hasRole('" + ADMINISTRATOR + "')";

    public static final String ADMIN = "admin";

    public static final String DEFAULT_ADMIN = "default_admin";

    public static final String HAS_ROLE_ADMIN = "hasAnyRole('" + ADMINISTRATOR + "', '" + ADMIN + "')";

    public static final String USER = "user";

    public static final String HAS_ROLE_USER = "hasRole('" + USER + "')";

    public static final String TEST = "test";

    public static final String HAS_ROLE_TEST = "hasRole('" + TEST + "')";

    /**
     * 无角色
     */
    public static final Long BASE_NOTHING_ROLE = 0L;
    /**
     * 超级管理员
     */
    public static final Long BASE_ADMINISTRATOR_ROLE = 1L;
    /**
     * 管理员
     */
    public static final Long BASE_ADMIN_ROLE = 2L;
    /**
     *组长
     */
    public static final Long BASE_EXPERT_ROLE = 4L;

    /**
     * 地市公司专责
     */
    public static final Long BASE_SPECIAL_ROLE = 8L;

    /**
     * 地市管理员
     */
    public static final Long BASE_SPECIAL_ADMIN_ROLE = 16L;

    /**
     * 无角色
     */
    public static final String BASE_NOTHING_ROLE_ALIAS = "nothing";

    /**
     * 超级管理员
     */
    public static final String BASE_ADMINISTRATOR_ROLE_ALIAS = "administrator";

    /**
     * 管理员
     */
    public static final String BASE_ADMIN_ROLE_ALIAS = "admin";

    /**
     * 组长
     */
    public static final String BASE_LEADER_ROLE_ALIAS = "leader";

    /**
     * 专家
     */
    public static final String BASE_EXPERT_ROLE_ALIAS = "expert";

    /**
     * 地市公司专责
     */
    public static final String BASE_SPECIAL_ROLE_ALIAS = "special";

    /**
     * 地市公司管理员
     */
    public static final String BASE_SPECIAL_ADMIN_ROLE_ALIAS = "special_admin";
}
